POV-Ray : Newsgroups : povray.beta-test : Isosurface problem : Re: Isosurface problem Server Time
2 Nov 2024 09:19:09 EDT (-0400)
  Re: Isosurface problem  
From:
Date: 21 Dec 2001 11:24:27
Message: <47o62u8ikfk9f6mq0n775epv4bt3kuc0st@4ax.com>
On Fri, 21 Dec 2001 17:17:05 +0100, "Rico" <Eri### [at] wanadoofr> wrote:
> Am I too dummy or is it a bug with pov 3.5 beta 8 and 9 ?
> This scene rendered perfectly with pov 3.1g. So, I tried to transpose it to
> pov 3.5, but...

How could it render with pov 3.1g when there wasn't isosurface in 3.1 ?
You are talking probably about MegaPOV but you shouldn't expect exactly the same
behavour becouse megapov was only _unofficial_ set patches

> And the corresponding message error :
>
>  isosurface {
>    function { y + 0.22 + 0.05*Pig(10*x,10*y,10*z) } <----ERROR
> Parse Error: Expected '.', } found instead

The message is right. Pig() returns vector (or color). You should add .gray
operator or change pigment to pattern if you want MEGAPOV's behaviour.

> And the resulting message :
>
>  isosurface {
>    function { y + 0.22 + 0.05*f_noise3d( <----ERROR
> Parse Error: Expected 'operator', ( found instead

Have you included "functions.inc" to this script ?

> Is it a real problem or am I completely off-topic ?

not completly but almost :-)

ABX
--
#declare _=function(a,b,x){((a^2)+(b^2))^.5-x}#default {pigment{color rgb 1}}
union{plane{y,-3}plane{-x,-3}finish{reflection 1 ambient 0}}isosurface{ //ABX
function{_(x-2,y,1)&_((x+y)*.7,z,.1)&_((x+y+2)*.7,z,.1)&_(x/2+y*.8+1.5,z,.1)}
contained_by{box{<0,-3,-.1>,<3,0,.1>}}translate z*15finish{ambient 1}}//POV35


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.